<!doctype html>
<?php
    // se 'cod' for 1 ele encaminhará para tela de cadastro de funcionario ICTS,
    //caso o 'cod' for 2 será encaminhado para tela de cadastro de funcionario CTS
    session_start();
    if((isset($_GET['cod'])) && (($_GET['cod'] == 1) || ($_GET['cod']) == 2)){

        $cod = $_GET['cod'];
?>
<head>
	<meta charset="utf-8" />	
	<title>Insira o Documento</title>	
	<link rel="stylesheet" href="../../css/jquery.ui.all.css">
	<!-- Demo page layout -->
	<script src="../../js/jquery-1.4.3.min.js"></script>
	<script src="../../js/jquery-ui-1.8.5.min.js"></script>
    <script src="../../js/maskedinput.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript" src="../../js/validacaoCpf.js"></script>
	<link rel="stylesheet" href="../ui-themes/aristo/jquery.ui.all.css"> 
	<link rel="stylesheet" href="../../css/html5forms.layout.css">
    
    <style>
   #erro
	{
		font-family:Arial, Helvetica, sans-serif;
		font-size:18px;
		color:#FFA500
		
	}
   </style>

	
</head>
<body>
	
	<h1>
		Insira Documento
	
	</h1>
	
	<form id="validaCpf" name="validaCpf"  method="post" action="../controllers_funcionario/validaCpf.php?cod=<?=$cod?>" onSubmit="return validacao();">
	
<label for="text-field">CPF</label>
		<input type="text" name="cpf" id="cpf" size="12">
        <div id="erro"></div>
		<button type="submit" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button">
			<span class="ui-button-text">Enviar</span>
		</button>
        
       <button type="reset" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button">
			<span class="ui-button-text">Limpar</span>
		</button>
		<div class="clearfix"></div>
	
    </form>
 	<a href="../../menu.php"><img src='../../img/home1.png'width="70"/></a>
    <a href="../../menu.php"><img src='../../img/retorno.png'width="70"/></a>

	
</body>
</html>
<script language="javascript">

jQuery(function($){

       $("#cpf").mask("999.999.999-99");


});

</script>

<?php }else{ echo "Erro! contate o administrador";}?>